import request from '@/utils/request'

export function rolesAdd(data) {
  return request({
    url: '/rolesManage/role',
    method: 'post',
    data
  })
}

export function getRoles(query) {
  return request({
    url: '/rolesManage/role',
    method: 'get',
    params: query
  })
}
export function showRoles(id) {
  return request({
    url: '/rolesManage/role/' + id,
    method: 'get'
  })
}

export function roleUpdate(id,data) {
  return request({
    url: '/rolesManage/role/' + id,
    method: 'put',
    data
  })
}
export function roleDelete(id) {
  return request({
    url: '/rolesManage/role/' + id,
    method: 'delete',
  })
}




